package dashboard.statrpt.field;

public enum RptSumInstanceEfficiencyPercentages implements RptField {
	
	BufferNowaitPercent("Buffer Nowait %:", 2, Double.class),
	RedoNoWaitPercent("Redo NoWait %:", 4, Double.class),
	BufferHitPercent("Buffer  Hit   %:", 2, Double.class),
	InMemorySortPercent("In-memory Sort %:", 4, Double.class);
	
	private String label;
	private String name;
	private int colIndex;
	private Class type;
	
	RptSumInstanceEfficiencyPercentages(String name, int colIndex, Class type){
		this.name = name;
		this.colIndex = colIndex;
		this.type = type;
	}

	@Override
	public String getFieldName() {
		return name;
	}

	@Override
	public int getColIndex() {
		return colIndex;
	}

	@Override
	public Class getFieldType() {
		return type;
	}
	
	public String getLabel(){
		return getFieldName();
	}
	
	public String getKey(){
		return name();
	}
}
